package org.easy.alists;

import com.aliyuncs.sts.model.v20150401.AssumeRoleResponse;
import org.easy.alists.model.AssumeRoleResponseTemp;
import org.easy.alists.model.TempOssSts;

public interface AliyunStsService {

    /**
     * 阿里云临时账号
     *
     * @return
     */
    TempOssSts ossTempSts(String roleSessionName, Long expireTime, String bucketName, String endpoint, String regionId);


    /**
     * 获取STS AssumeRoleResponse
     *
     * @return
     */
    AssumeRoleResponse getStsAssumeRoleResponse(String roleSessionName, Long expireTime, String bucketName, String endpoint, String regionId);


    AssumeRoleResponseTemp getStsAssumeRoleResponseTemp(String roleSessionName, Long expireTime, String bucketName, String endpoint, String regionId);
}
